﻿Imports tiendaRegalos
Public Class ListarRol

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Buscar.Click

        Dim negocio As New RolNegocio
        Dim paquetes As Collection = negocio.listar()
        Me.dgvrol.DataSource = paquetes
        Me.dgvrol.EditMode = False

        Me.dgvrol.Columns(0).HeaderText = "idRol"
        Me.dgvrol.Columns(1).HeaderText = "nombre"
        Me.dgvrol.Columns(2).HeaderText = "descripcion"
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.Close()
        Me.Visible = False
    End Sub
End Class